package com.tdkj.model.shop;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * ShopRecommendations entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_shop_recommendation_type")
public class BeanShopRecommendationType extends BaseEntity {

	private String name;
	private Integer quantity;
	private Integer leftQuantity;
	private List<BeanShopRecommendationCustom> customs;
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the quantity
	 */
	public Integer getQuantity() {
		return quantity;
	}
	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	/**
	 * @return the leftQuantity
	 */
	public Integer getLeftQuantity() {
		return leftQuantity;
	}
	/**
	 * @param leftQuantity the leftQuantity to set
	 */
	public void setLeftQuantity(Integer leftQuantity) {
		this.leftQuantity = leftQuantity;
	}
	/**
	 * @return the customs
	 */
	@OneToMany(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH}, mappedBy="type")
	public List<BeanShopRecommendationCustom> getCustoms() {
		return customs;
	}
	/**
	 * @param customs the customs to set
	 */
	public void setCustoms(List<BeanShopRecommendationCustom> customs) {
		this.customs = customs;
	}

	
}